import query from '@dfeidao/atom-nodejs/db/query';
import { IncomingHttpHeaders } from 'http';
import { productid ,systemid} from '../../atom/config';
// 查询项目下拉框的数据
interface Message {
	filter: {
		department_no: string
	};
}
export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	const p = query(action_id, session_id, systemid);
	p.prepare('company_project', ['project_no', 'project_name'], { productid,equip_depart_no:message.filter.department_no}, 20,  1, [], []);
	const [dt] = await p.exec();
	return{dt};
}
